import baseEntity from "./baseEntity";
export default class def_inout extends baseEntity {
  constructor(options) {
    super(options);
    this.IsIncome = options.IsIncome;
    this.Type = options.Type;
    this.Group = options.Group;
    this.Remark = options.Remark;
  }
  static load() {
    return new Promise((resolve, reject) => {
      getApp().globalData.api.http_get(`${getApp().globalData.baseUrl}/api/sys/def/inout`)
        .then(
          res => {
            console.log(res);
            let list = [];
            res.forEach(x => {
              list.push(new def_inout(x));
            });
            resolve(list);
          }
        )
    })
  }
}
